package com.ssm.helong.shop.entity;

/**
 * 收货地址实体类
 */
public class Address {
    //编号id
    private Integer id;
    //用户id
    private Integer userId;
    //收货人
    private String receiver;
    //收货人电话
    private String receiverPhone;
    //省份信息
    private String province;
    //城市
    private String city;
    //详细信息
    private String detailAddress;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", userId=" + userId +
                ", receiver='" + receiver + '\'' +
                ", receiverPhone='" + receiverPhone + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", detailAddress='" + detailAddress + '\'' +
                '}';
    }
    //定义无参构造
    public Address() {
    }
    //定义有参构造
    public Address(Integer id, Integer userId, String receiver, String receiverPhone, String province, String city, String detailAddress) {
        this.id = id;
        this.userId = userId;
        this.receiver = receiver;
        this.receiverPhone = receiverPhone;
        this.province = province;
        this.city = city;
        this.detailAddress = detailAddress;
    }
}
